package com.ruoyi.common.service.impl;

import java.util.List;

import com.ruoyi.common.dao.MydoneMapper;
import com.ruoyi.common.entity.Mydone;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.service.IMydoneService;

/**
 * VIEWService业务层处理
 * 
 * @author dustball
 * @date 2021-04-23
 */
@Service
public class MydoneServiceImpl implements IMydoneService 
{
    @Autowired
    private MydoneMapper mydoneMapper;

    /**
     * 查询VIEW
     * 
     * @param filetype VIEWID
     * @return VIEW
     */
    @Override
    public Mydone selectMydoneById(String filetype)
    {
        return mydoneMapper.selectMydoneById(filetype);
    }

    /**
     * 查询VIEW列表
     * 
     * @param mydone VIEW
     * @return VIEW
     */
    @Override
    public List<Mydone> selectMydoneList(Mydone mydone)
    {
        return mydoneMapper.selectMydoneList(mydone);
    }

    /**
     * 新增VIEW
     * 
     * @param mydone VIEW
     * @return 结果
     */
    @Override
    public int insertMydone(Mydone mydone)
    {
        return mydoneMapper.insertMydone(mydone);
    }

    /**
     * 修改VIEW
     * 
     * @param mydone VIEW
     * @return 结果
     */
    @Override
    public int updateMydone(Mydone mydone)
    {
        return mydoneMapper.updateMydone(mydone);
    }

    /**
     * 批量删除VIEW
     * 
     * @param filetypes 需要删除的VIEWID
     * @return 结果
     */
    @Override
    public int deleteMydoneByIds(String[] filetypes)
    {
        return mydoneMapper.deleteMydoneByIds(filetypes);
    }

    /**
     * 删除VIEW信息
     * 
     * @param filetype VIEWID
     * @return 结果
     */
    @Override
    public int deleteMydoneById(String filetype)
    {
        return mydoneMapper.deleteMydoneById(filetype);
    }
}
